#ifndef NETFINISHEDWIDGET_H
#define NETFINISHEDWIDGET_H

#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
#include <QWidget>
#define QINT64_MAX 9223372036854775807LL
class NetFinishedWidget : public QWidget
{
    Q_OBJECT
public:
    explicit NetFinishedWidget(QWidget *parent = nullptr);
    void setNetworkStatusDisplay(bool a, bool b, bool c, qint64 d, qint64 e);
protected slots:
    void onCheckAgainClicked();

private:
    void addNetWorkStatusLabel(QHBoxLayout *HBoxLayout,
                               QLabel *label,
                               QLabel *label1,
                               QLabel *label2,
                               bool status,
                               const QString &text,
                               const QString &yes_icon,
                               const QString &no_icon);
    void addNetWorkCostLabel(QHBoxLayout *HBoxLayout,
                             QLabel *label,
                             QLabel *label2,
                             const qint64 &cost,
                             const QString &text);
    void addNetworkStatus(const QString &statusDescription, bool status, QVBoxLayout *parentLayout);
    void addNetworkCost(const QString &costDescription, qint64 cost, QVBoxLayout *parentLayout);

private:
    QVBoxLayout *mainLayout;
    QHBoxLayout *HBoxLayout1;
    QHBoxLayout *HBoxLayout2;
    QVBoxLayout *VBoxLayout1;
    QLabel *netStatus;
    QLabel *netDescri;
    QLabel *labelIcon;
    QPushButton *checkAgain;

signals:
    void checkAgainSignal();
};

#endif // NETFINISHEDWIDGET_H
